﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace PF.MecSom {
    static class Program {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args) {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Se passar parâmetro /m mostra somente tela de migração de dados.
            if (args.Length > 0 && args[0].Contains("?"))
                MessageBox.Show("Informar /m para migrar os dados de Access para SQL Server CE.");
            else if (args.Length > 0 && args[0] == "/m")
                Application.Run(new Migracao());
            else
                Application.Run(new Principal());
        }
    }
}
